package com.it985.springcloud.service;

import com.it985.springcloud.entities.CommonResult;
import com.it985.springcloud.entities.Payment;
import org.springframework.stereotype.Component;

/**
 * TODO:
 *
 * @Author yushu
 * @Date 2022/4/19 15:56
 */
@Component
public class PaymentFallbackService implements PaymentService{
    @Override
    public CommonResult<Payment> paymentSQL(Long id) {
        return new CommonResult<>(444,"服务降级返回, ----PaymentFallbackService", new Payment(id, "errorSerial"));
    }
}
